package com.atguigu.spring.config;

import com.atguigu.spring.controller.DemoController;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DemoConfig {

    @Bean(initMethod = "initMethodByBean", destroyMethod = "destroyMethodByBean")
    public DemoController getDemoController() {
        return new DemoController();
    }

}
